$(function () {
    $('.a-inblock').click(function () {
        $.ajax({
            url: "http://jx.xuzhixiang.top/ap/api/login.php",
            type: "get",
            data: {
                username: $('#usernamel').val(),
                password: $('#passwordl').val()
            },
            success: function (res) {
                console.log(res);
                if (res.code == 0) {
                    // console.log(1);
                    alert("账号密码错误")   
                };
                if (res.code == 1) {
                    // console.log(2);
                    window.location.href = "../html/index.html"
                }
            }
        })
    })
})